package cc.sunwl.security.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class LoginController {

	private final static Logger log = LoggerFactory.getLogger(LoginController.class);

	@GetMapping("/login")
	public String login() {
		return "login";
	}

	@PostMapping
	public String login(String username, String password) {
		log.info("用户名：{} 密码：{}", username, password);
		return "hello";
	}
}
